<template>
    <div class="person">
      <h1>小明的女朋友有</h1>
      <ul>
        //用li列表列出对象内容
        <li v-for="gf in gfArr":Key="gf.id">{{ gf.name }}</li>
      </ul>
    </div>
</template>
<script setup name="New" lang="ts">

let gfArr = ([
    {id:'gf01',name:'小莉'},
    {id:'gf02',name:'小舞'},
    {id:'gf02',name:'小岬'}
    ])
</script>
<style>

</style>
